const userRules =  {
    username: [
        { required: true, message: '请输入用户名', trigger: 'blur' },
        { min: 3, max: 9, message: '长度在 3 到 5 个字符', trigger: 'blur' }
    ],
    password: [
        { required: true, message: '请输入密码', trigger: 'blur' },
        { min: 3, max: 9, message: '长度在 3 到 5 个字符', trigger: 'blur' }
    ]
};

const bannerRules = {
    active_name:[{ required: true, message: '请输入活动名称', trigger: 'blur' }],
    url:[{ required: true, message: '请输入活动地址', trigger: 'blur' }],
    image:[{ required: true, message: '请输入图片地址', trigger: 'blur' }],
    start_time:[{ required: true, message: '请选择开始时间', trigger: 'blur' }],
    end_time:[{ required: true, message: '请选择结束时间', trigger: 'blur' }],
    user_id:[{required: true}]
}

export {userRules,bannerRules}